from selenium.webdriver.common.by import By

from bace import Bace
class Page(Bace):
    def find_wd(self):
        loc=(By.ID,'com.kongfz.app:id/lav_5')
        ele=self.dingwei(loc)
        return ele
    def fiad_user(self):
        loc=(By.XPATH,'//android.widget.EditText[@resource-id="com.kongfz.app:id/et_login_name"]')
        ele=self.dingwei(loc)
        return ele
    def fian_pas(self):
        loc=(By.XPATH,'//android.widget.EditText[@resource-id="com.kongfz.app:id/et_pwd"]')
        ele=self.dingwei(loc)
        return ele
    def find_ys(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.kongfz.app:id/iconf_privacy")')
        ele=self.dingwei(loc)
        return ele
    def find_dl(self):
        loc=(By.ID,'com.kongfz.app:id/tv_confirm_btn')
        ele=self.dingwei(loc)
        return ele
    def find_duanyan(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.kongfz.app:id/tv_order"]')
        ele=self.dingwei(loc)
        return ele